package vn.edu.vnu.sort;

import vn.edu.vnu.sort.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Choosing extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choosing);
        
        Button btn1 = (Button) findViewById(R.id.button1);
        btn1.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClassName("vn.edu.vnu.sort", "vn.edu.vnu.sort.Algorithm");
				intent.putExtra("alg", 1);
				startActivity(intent);
			}
		});
        
        Button btn2 = (Button) findViewById(R.id.button2);
        btn2.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClassName("vn.edu.vnu.sort", "vn.edu.vnu.sort.Algorithm");
				intent.putExtra("alg", 2);
				startActivity(intent);
			}
		});
        
        Button btn3 = (Button) findViewById(R.id.button3);
        btn3.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClassName("vn.edu.vnu.sort", "vn.edu.vnu.sort.Algorithm");
				intent.putExtra("alg", 3);
				startActivity(intent);
			}
		});
    }
}
